<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BabyOS: DEVICE_Exported_Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="2.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">BabyOS
   &#160;<span id="projectnumber">V1.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">DEVICE_Exported_Functions<div class="ingroups"><a class="el" href="group___b_a_b_y_o_s.html">BABYOS</a> &raquo; <a class="el" href="group___d_e_v_i_c_e.html">DEVICE</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga404e753d491d3b3e4c6fba215d191fa7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_e_v_i_c_e___exported___functions.html#ga404e753d491d3b3e4c6fba215d191fa7">bDeviceInit</a> ()</td></tr>
<tr class="memdesc:ga404e753d491d3b3e4c6fba215d191fa7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Device Initialize.  <a href="#ga404e753d491d3b3e4c6fba215d191fa7">More...</a><br /></td></tr>
<tr class="separator:ga404e753d491d3b3e4c6fba215d191fa7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac022bd943e28b18b2dce587207c25788"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_e_v_i_c_e___exported___functions.html#gac022bd943e28b18b2dce587207c25788">bDeviceOpen</a> (uint8_t no)</td></tr>
<tr class="separator:gac022bd943e28b18b2dce587207c25788"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga580d17c32a7382f586cc11ba84160e09"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_e_v_i_c_e___exported___functions.html#ga580d17c32a7382f586cc11ba84160e09">bDeviceRead</a> (int no, uint32_t address, uint8_t *pdata, uint16_t len)</td></tr>
<tr class="separator:ga580d17c32a7382f586cc11ba84160e09"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7b100bfb070e715961c0bfe2da20d6be"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_e_v_i_c_e___exported___functions.html#ga7b100bfb070e715961c0bfe2da20d6be">bDeviceWrite</a> (int no, uint32_t address, uint8_t *pdata, uint16_t len)</td></tr>
<tr class="separator:ga7b100bfb070e715961c0bfe2da20d6be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf8441490c33a1dfa5e56b510d332df29"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_e_v_i_c_e___exported___functions.html#gaf8441490c33a1dfa5e56b510d332df29">bDeviceClose</a> (int no)</td></tr>
<tr class="separator:gaf8441490c33a1dfa5e56b510d332df29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac8137793df6d7d8399128f4997cb0914"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_e_v_i_c_e___exported___functions.html#gac8137793df6d7d8399128f4997cb0914">bDeviceCtl</a> (int no, uint8_t cmd, void *param)</td></tr>
<tr class="separator:gac8137793df6d7d8399128f4997cb0914"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Function Documentation</h2>
<a id="gaf8441490c33a1dfa5e56b510d332df29"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf8441490c33a1dfa5e56b510d332df29">&#9670;&nbsp;</a></span>bDeviceClose()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int bDeviceClose </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>no</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="b__device_8c_source.html#l00214">214</a> of file <a class="el" href="b__device_8c_source.html">b_device.c</a>.</p>

<p class="reference">References <a class="el" href="b__device_8h_source.html#l00151">bDEV_MAX_NUM</a>.</p>

</div>
</div>
<a id="gac8137793df6d7d8399128f4997cb0914"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac8137793df6d7d8399128f4997cb0914">&#9670;&nbsp;</a></span>bDeviceCtl()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int bDeviceCtl </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>no</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>cmd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>param</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="b__device_8c_source.html#l00232">232</a> of file <a class="el" href="b__device_8c_source.html">b_device.c</a>.</p>

<p class="reference">References <a class="el" href="b__device_8h_source.html#l00151">bDEV_MAX_NUM</a>.</p>

<p class="reference">Referenced by <a class="el" href="b__core_8c_source.html#l00254">bCtl()</a>.</p>

</div>
</div>
<a id="ga404e753d491d3b3e4c6fba215d191fa7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga404e753d491d3b3e4c6fba215d191fa7">&#9670;&nbsp;</a></span>bDeviceInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int bDeviceInit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Device Initialize. </p>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">Number</td><td>of abnormal device </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="b__device_8c_source.html#l00129">129</a> of file <a class="el" href="b__device_8c_source.html">b_device.c</a>.</p>

<p class="reference">References <a class="el" href="b__device_8h_source.html#l00151">bDEV_MAX_NUM</a>.</p>

<p class="reference">Referenced by <a class="el" href="b__os_8c_source.html#l00118">bInit()</a>.</p>

</div>
</div>
<a id="gac022bd943e28b18b2dce587207c25788"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac022bd943e28b18b2dce587207c25788">&#9670;&nbsp;</a></span>bDeviceOpen()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int bDeviceOpen </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>no</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="b__device_8c_source.html#l00160">160</a> of file <a class="el" href="b__device_8c_source.html">b_device.c</a>.</p>

<p class="reference">References <a class="el" href="b__device_8h_source.html#l00151">bDEV_MAX_NUM</a>.</p>

</div>
</div>
<a id="ga580d17c32a7382f586cc11ba84160e09"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga580d17c32a7382f586cc11ba84160e09">&#9670;&nbsp;</a></span>bDeviceRead()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int bDeviceRead </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>no</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>address</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>pdata</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="b__device_8c_source.html#l00178">178</a> of file <a class="el" href="b__device_8c_source.html">b_device.c</a>.</p>

<p class="reference">References <a class="el" href="b__device_8h_source.html#l00151">bDEV_MAX_NUM</a>, and <a class="el" href="b__config_8h_source.html#l00042">NULL</a>.</p>

</div>
</div>
<a id="ga7b100bfb070e715961c0bfe2da20d6be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7b100bfb070e715961c0bfe2da20d6be">&#9670;&nbsp;</a></span>bDeviceWrite()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int bDeviceWrite </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>no</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>address</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>pdata</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="b__device_8c_source.html#l00195">195</a> of file <a class="el" href="b__device_8c_source.html">b_device.c</a>.</p>

<p class="reference">References <a class="el" href="b__device_8h_source.html#l00151">bDEV_MAX_NUM</a>, and <a class="el" href="b__config_8h_source.html#l00042">NULL</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
